package com.sz.mes.mapper.warehouse;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.diboot.core.mapper.BaseCrudMapper;
import com.sz.mes.entity.warehouse.LatticeGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 货格对应商品表Mapper
 *
 * @author hem
 * @version 1.0
 * @date 2023-05-25
 * Copyright © szhs
 */
@Mapper
public interface LatticeGoodsMapper extends BaseCrudMapper<LatticeGoods> {

    void deleteByIdRealy(Long id);


//    List<LatticeGoods> selectLatticeGoods(@Param("current") long current, @Param("size") long size, @Param("goodsName") String goodsName, @Param("goodsCode") String goodsCode);

    List<LatticeGoods> selectLatticeGoods(@Param("pageIndex") int pageIndex,
                                          @Param("pageSize") int pageSize,
                                          @Param("goodsName") String goodsName,
                                          @Param("goodsCode") String goodsCode);

    List<LatticeGoods> selectLatticeGoodsByAll(@Param("goodsName") String goodsName,
                                               @Param("goodsCode") String goodsCode);

    LatticeGoods selectByTaskNum(@Param("taskNum") String taskNum);

    List<LatticeGoods> selectByGoodsCode(@Param("goodsCode") String goodsCode);

    List<LatticeGoods> selectByReceiptNum(@Param("receiptNum") String receiptNum);
}

